package com.aliothservice.catfish.admin.data;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.springframework.data.annotation.Id;

public class AppealResult {
	
	public Map<String, Object> toMap() {
		Map<String, Object> map = new HashMap<String, Object>();
		
		map.put("buyerAmount", this.getBuyerAmount());
		map.put("sellerAmount", this.getSellerAmount());
		map.put("resultStatement", this.getResultStatement());
		map.put("orderObject", this.getOrderObject());
		DateFormat fullFormatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
		map.put("creationDate", fullFormatter.format(this.getCreationDate()));
		
		return map;
	}
	
	@Id
	private String id;
	
	private Integer buyerAmount;
	private Integer sellerAmount;
	private String resultStatement;
	
	private Map<String, Object> orderObject;
	
	private Date creationDate;

	public Integer getBuyerAmount() {
		return buyerAmount;
	}

	public void setBuyerAmount(Integer buyerAmount) {
		this.buyerAmount = buyerAmount;
	}

	public Integer getSellerAmount() {
		return sellerAmount;
	}

	public void setSellerAmount(Integer sellerAmount) {
		this.sellerAmount = sellerAmount;
	}

	public String getResultStatement() {
		return resultStatement;
	}

	public void setResultStatement(String resultStatement) {
		this.resultStatement = resultStatement;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	public Map<String, Object> getOrderObject() {
		return orderObject;
	}

	public void setOrderObject(Map<String, Object> orderObject) {
		this.orderObject = orderObject;
	}

}
